From cc329786641d576af0f7675121588cdc0d66bc19 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 25 May 2007 10:17:43 +0100 Subject: [PATCH] linux: Fix PV-on-HVM crash when installing PV drivers on native system. From: Gerd Hoffmann Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 1 + linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index d16d67602a..c7f8c1d836 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -172,6 +172,7 @@ static struct xen_bus_type xenbus_frontend = { .levels = 2, /* device/type/ */ .get_bus_id = frontend_bus_id, .probe = xenbus_probe_frontend, + .error = -ENODEV, .bus = { .name = "xen", .match = xenbus_match, diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c index 0b92c42860..e8007bdef1 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c @@ -115,6 +115,7 @@ static struct xen_bus_type xenbus_backend = { .levels = 3, /* backend/type// */ .get_bus_id = backend_bus_id, .probe = xenbus_probe_backend, + .error = -ENODEV, .bus = { .name = "xen-backend", .match = xenbus_match, -- 2.30.2